package com.jianqiao.delivery.midtrans.domain.vo;

import lombok.Data;

/**
 * author: cyx
 * create: 2024/8/7 10:51
 **/
@Data
public class TransactionDetailsVo {
    /** 订单id **/
    private String order_id;
    /** 订单金额 **/
    private String gross_amount;

    public TransactionDetailsVo(String order_id, String gross_amount) {
        this.order_id = order_id;
        this.gross_amount = gross_amount;
    }

    public static TransactionDetailsVoBuild builder(){
        return new TransactionDetailsVoBuild();
    }

    public static class TransactionDetailsVoBuild{
        /** 订单id **/
        private String order_id;
        /** 订单金额 **/
        private String gross_amount;

        TransactionDetailsVoBuild(){

        }

        public TransactionDetailsVoBuild order_id(final String order_id){
            this.order_id = order_id;
            return this;
        }

        public TransactionDetailsVoBuild gross_amount(final String gross_amount){
            this.gross_amount = gross_amount;
            return this;
        }

        public TransactionDetailsVo build(){
            return new TransactionDetailsVo(this.order_id ,this.gross_amount);
        }
    }
}
